package com.beautify.config;

import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// 配置文件加密类
@Configuration
public class SecurityConfiguration {

    @Bean
    public StandardPBEStringEncryptor passwordEncryptor() {
        StandardPBEStringEncryptor standardPBEStringEncryptor = new StandardPBEStringEncryptor();
        standardPBEStringEncryptor.setPassword("123456");
        return standardPBEStringEncryptor;
    }
}
